#ifndef MMA8452Q_H
#define MMA8452Q_H

#include "includes.h"
#include "I2C_MMA.h"

/**MMA8452Q閿熶茎杈炬嫹閿熸枻鎷烽敓鏂ゆ嫹鍧€*/
#define MMA8452Q_CTRL_REG1      0x2A   //閿熸枻鎷烽敓鐙″瘎杈炬嫹閿熸枻鎷�1閿熸枻鎷峰潃
#define MMA8452Q_CTRL_REG2      0x2B   //閿熸枻鎷烽敓鐙″瘎杈炬嫹閿熸枻鎷�2閿熸枻鎷峰潃
#define MMA8452Q_WHO_AM_I       0x0D   //WHO_AM_I閿熸枻鎷峰潃
#define MMA8452Q_XOUT_H         0x01
#define MMA8452Q_XOUT_L         0x02
#define MMA8452Q_YOUT_H         0x03
#define MMA8452Q_YOUT_L         0x04
#define MMA8452Q_ZOUT_H         0x05
#define MMA8452Q_ZOUT_L         0x06


INT8U MMA8452Q_Init(void);		//閿熸枻鎷峰閿熸枻鎷�
void MMA8452Q_GetAcc(INT8U *Buff);		//閿熸枻鎷烽敓鏂ゆ嫹閿熸枻鎷�
    
#endif


